/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.Controllers;

import com.bs.Beans.IndiceEconomico;
import com.bs.Forms.IndicesEconomicosForm;
import com.bs.extensoesSwing.AbstractGridController;
import com.bs.extensoesSwing.PadraoForm;

/**
 *
 * @author Bone
 */
public class IndiceEconomicoController <E> extends AbstractGridController<IndiceEconomico>{

    @Override
    public void novo() {
        IndicesEconomicosForm f  = new IndicesEconomicosForm(getEntityManager(), new IndiceEconomico());
        f.setVisible(true);
        if(!f.isCancelado())adicionarALista((IndiceEconomico)f.getBean());
    }

    @Override
    public void alterar() {
        IndicesEconomicosForm f = new IndicesEconomicosForm(getEntityManager(), getBeanSelecionado(), PadraoForm.ALTERAR);
        f.setVisible(true);
    }
    
}
